<%inherit file="base.html"/>
<%def name="title()">Accounts/Groups total</%def>

<div ex:role="collection" id="groupdayasofs" ex:itemTypes="groupdayasof"></div>
<div ex:role="collection" id="accountdtasofs" ex:itemTypes="accountdtasof"></div>
   <table>
        <tr><td>
<h2>Groups total</h2>
<div ex:role="view" ex:collectionID="groupdayasofs"
     ex:viewClass="Tabular" 
     ex:showSummary="false"
     ex:columns=".accountGroup, .dayasof, .mKTVAL"
     ex:columnLabels="Group, Statement day, Value"
     ex:formats="date { mode: short }  number { decimal-digits: 2 }"
     ex:sortColumn="1"
     ex:sortAscending="false"
     ex:showToolbox="true">
    <table style="display: none;">
        <tr>
            <td><span ex:content=".accountGroup"></span></td>
            <td><span ex:content=".dayasof"></span></td>
            <td style="text-align:right"><span ex:content=".mKTVAL"></span></td>
        </tr>
    </table>
</div>
        </td></tr>
        <tr><td>
<h2>Accounts total</h2>
<div ex:role="view" ex:collectionID="accountdtasofs"
     ex:viewClass="Tabular" 
     ex:showSummary="false"
     ex:columns=".ACCTID, .DTASOF, .AVAILCASH, .mktval"
     ex:columnLabels="Account ID, Statement date-time, Available Cash, Value"
     ex:formats="date { mode: short }  number { decimal-digits: 2 }"
     ex:sortColumn="1"
     ex:sortAscending="false"
     ex:showToolbox="true">
    <table style="display: none;">
        <tr>
            <td><span ex:content=".ACCTID"></span></td>
            <td><span ex:content=".DTASOF"></span></td>
            <td style="text-align:right"><span ex:content=".AVAILCASH"></span></td>
            <td style="text-align:right"><span ex:content=".CURDEF"></span> <span ex:content=".mktval"></span></td>
        </tr>
    </table>
</div>
             </td>
            <td width="25%">
<div ex:role="facet" ex:expression=".ACCTID" ex:facetLabel="Account"  ex:collectionID="accountdtasofs"></div>
<div ex:role="facet" ex:expression=".DTASOF" ex:facetLabel="Date" ex:sortDirection="reverse"  ex:collectionID="accountdtasofs"></div>
           </td>
        </tr>
    </table>
